import Vue from 'vue'
import App from './App.vue'
import router from './router'
//element导入
import './plugins/element.js'
//全局样式导入
import './assets/css/global.css'
//字体图标导入
import './assets/fonts/iconfont.css'
//axios导入
import axios from 'axios'
//引入vuex  
import store from './store'
//配置请求根路径以及请求头
axios.defaults.baseURL = 'http://172.16.12.80:8080'
axios.interceptors.request.use(config => {
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})
Vue.prototype.$axios = axios

Vue.config.productionTip = false

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
